package com.edgar.plugin.pm;

import android.content.Context;

import java.io.File;

/**
 * Created by Edgar on 2018/2/11.
 */
public final class PluginDirHelper {

    /** 插件管理根目录**/
    public static final String DIR_ROOT_PLUGIN = "plugin";
    public static final String DIR_PLUGIN_APK = "apk";
    /** 插件so目录 **/
    public static final String DIR_PLUGIN_LIB = "lib";

    private PluginDirHelper(){}

    static File makeRootDirectory(Context context){
        return context.getDir(DIR_ROOT_PLUGIN,Context.MODE_PRIVATE);
    }

    static File makePluginPackageDirectory(Context context, String packageName){
        return new File(makeRootDirectory(context),packageName);
    }
}
